﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WebUserControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            refresh();
        }
    }

    public void refresh()
    {
        int count = 0;
        if (Session["winkelwagen"] != null)
        {
            List<Game> sessie = (List<Game>)Session["winkelwagen"];
            count = sessie.Count;
        }
        if (Session["winkelwagenCover"] != null)
        {
            List<Game> sessie2 = (List<Game>)Session["winkelwagenCover"];
            count += sessie2.Count;
        }
        winkelwagen_text.Text = "winkelwagen(" + count + ")";
    }
}
